FROM java:openjdk-8u111-alpine
ADD auto-api-service.jar /auto-api/
MAINTAINER pucong
# 暴露端口
EXPOSE 8080
EXPOSE 5005
VOLUME ["/auto-api/data"]
## 运行命令组装一下
CMD cd /auto-api && java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -Dfile.encoding=utf-8 -Xmx512m -Xms256m -Xss64m -jar auto-api-service.jar --server.port=8080
